package day3

object Test1 {
  def main(args: Array[String]): Unit = {
    var us = new User()
    us.name = "余生"
    us.m1()       // 调用伴生类
    User.m2()     // 调用伴生对象
    User.apply("666")


    val user2= User("阿生")
    user2.m1()

  }
}
